package interface_Mothed;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Stream;

/**
 * @Author Klys
 * @Date 2023/5/9 16:53
 * @Description
 * @Version 1.0
 */
public class Demo02 {
    public static void main(String[] args) {
        Comparator<Integer> comparator1 = (s1, s2) -> {
            return s1.compareTo(s2);
        };

        System.out.println(comparator1.compare(4, 3));

        List<String> list = Arrays.asList("123", "klys");
        list.forEach(System.out::println);


    }
}
